package org.xteam.sled.semantic.exp;

public class ExpNarrows extends ExpNarrow {

	public ExpNarrows(Exp expr, int width) {
		super(expr, width);
	}

	@Override
	public void visit(IExpVisitor visitor) {
		visitor.visitNarrows(this);
	}
	
	public boolean equals(Object o) {
		return (o instanceof ExpNarrows)
			&& ((ExpNarrows)o).width == width
			&& ((ExpNarrows)o).expr.equals(expr);
	}
	
	public String toString() {
		return "narrowS(" + expr + "," + width + ")";
	}

}
